package com.font.web.zhongyao;



import com.baomidou.mybatisplus.extension.api.ApiController;
import com.font.bean.MedicineType;
import com.font.bean.result.Result;
import com.font.service.MedicineTypeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (MedicineType)表控制层
 *
 * @author makejava
 * @since 2023-07-25 10:45:15
 */
@RestController
@RequestMapping("medicineType")
public class MedicineTypeController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private MedicineTypeService medicineTypeService;


    @GetMapping
    public Result selectAll() {
        List<MedicineType> list = medicineTypeService.list();
        return Result.success(list);
    }


}

